package com.electronic.modules.electronicSealSignature.result;

import com.cebpubservice.cashare.sdk.electronicsealsignatureandverifysignature.result.GenerateElectronicSealSignatureQRCodeResultDTO;
import lombok.Builder;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @Author: IFCA
 * @Description: 获取签章二维码返回对象
 */
@Builder
@Data
public class GetSignQrCodeVO {

    /**
     * 事件ID
     */
    private String tid;

    /**
     * 二维码BASE64图片
     */
    private String qrCodeImageBase64;

    /**
     * 二维码文本
     */
    private String qrCodeShowText;

    /**
     * 二维码文本跳转URL
     */
    private String qrCodeJumpUrl;

    /**
     * 二维码跳URL超链接
     */
    private String hyperLinkText;

    public static GetSignQrCodeVO convert(GenerateElectronicSealSignatureQRCodeResultDTO resultDTO) {
        GetSignQrCodeVO vo = GetSignQrCodeVO.builder().build();
        BeanUtils.copyProperties(resultDTO, vo);
        return vo;
    }
}
